<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
  <th:block th:include="include :: header('项目日志')" />
</head>
<body class="gray-bg">
<div class="container-div">
  <div class="row">
    <div class="col-sm-12 select-table table-striped">
      <table id="bootstrap-table" data-mobile-responsive="true"></table>
    </div>
  </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
  var prefix = ctx + "customer/projectLog";

  $(function() {
    var options = {
      url: prefix + "/list",
      modalName: "项目日志",
      showSearch: false,
      showExport: false,
      modalName: "项目日志",
      columns: [
        {
          field : 'logId',
          title : '',
          visible: false
        },
        {
          field: 'projectName',
          title: '项目名称'
        },
        {
          field: 'userName',
          title: '记录人'
        },
        {
          field: 'logDate',
          title: '记录日期'
        },
        {
          field: 'logWeather',
          title: '天气情况'
        },
        {
          field: 'logProblem',
          title: '存在的问题',
          formatter: function(value, row, index) {
            return $.table.tooltip(value);
          }
        },
        {
          field: 'logWorkPlan',
          title: '明天的工作计划',
          formatter: function(value, row, index) {
            return $.table.tooltip(value);
          }
        }]
    };
    $.table.init(options);
  });
</script>
</body>
</html>